//
//  SWBaseController.swift
//  SinaWeibo
//
//  Created by wszyxc on 16/7/18.
//  Copyright © 2016年 wszyxc. All rights reserved.
//

import UIKit

class SWBaseController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        
        
    }
    
    override func loadView() {
        
        if SWUserAcountViewModel.sharedUserAcountViewModel.isLogin{
            
            super.loadView()
        }else{
            
            let visitorView = UIView()
            visitorView.backgroundColor = UIColor.orangeColor()
            
            view = visitorView
        }
        
    }




}
